//
//  BookDBService.m
//  readNovels
//
//  Created by wulanzhou on 2017/2/27.
//  Copyright © 2017年 wulanzhou. All rights reserved.
//

#import "BookDBService.h"
#import "BookDataBaseDAL.h"
#import "BookDAL.h"


@implementation BookDBService

+ (void)createDB{
    [BookDataBaseDAL createDB];
}

//新增书籍(返回新增的Id)
+ (NSInteger)addBookName:(NSString *)name author:(NSString *)author{
    
    BookDAL *dal = [[BookDAL alloc] init];
    return [dal addBookName:name author:author];
}

@end
